import 'package:flutter/material.dart';
import 'package:flutter/widgets.dart';

class OutSetBodyStyle extends StatelessWidget {
  Widget widget;
  OutSetBodyStyle(this.widget);
  @override
  Widget build(BuildContext context) {
    return getChatTemplate();
  }

  Widget getChatTemplate() {
    return Container(
      // 设置最外层样式
      width: double.infinity,
      decoration: new BoxDecoration(
        //背景
        color: Colors.white,
        //设置四周圆角 角度
        borderRadius: BorderRadius.all(Radius.circular(15.0)),
      ),
      margin: EdgeInsets.fromLTRB(22.0, 15.0, 22.0, 15.0),
      child: this.widget,
    );
  }
}
